use fibonacci::Fibonacci;

fn main() {
    let n = 41;
    let f = Fibonacci::new(n);

    println!("迭代法：第{n}项斐波那契数为{}", f.iterative());
    // println!("递归法：第{n}项斐波那契数为{}", f.recursive());
    println!(
        "记忆化递归法：第{n}项斐波那契数为{}",
        f.memoized_recursive()
    );
}
